import request from '@/utils/request'

// 查询运单明细列表
export function listWaybillDtl(query) {
  return request({
    url: '/tms/waybillDtl/list',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean() {
    return request({
        url: '/tms/waybillDtl/initBean',
        method: 'post'
    })
}

// 查询运单明细详细
export function getWaybillDtl(id) {
  return request({
    url: '/tms/waybillDtl/' + id,
    method: 'get'
  })
}

// 新增运单明细
export function addWaybillDtl(data) {
  return request({
    url: '/tms/waybillDtl',
    method: 'post',
    data: data
  })
}

// 修改运单明细
export function updateWaybillDtl(data) {
  return request({
    url: '/tms/waybillDtl',
    method: 'put',
    data: data
  })
}

// 删除运单明细
export function delWaybillDtl(id) {
  return request({
    url: '/tms/waybillDtl/' + id,
    method: 'delete'
  })
}
